package cn.com.headfree.entity.isc;

import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.Map;

import org.apache.commons.lang3.StringUtils;

import cn.com.headfree.util.JsonUtil;


/**  
 * @Title  ExtProperty.java   
 * @Package cn.com.headfree.entity   
 * @Description TODO
 * @author yangwang 
 * @date  2020年8月4日 下午5:25:31   
 */
public class ExtProperty implements Serializable{

	private static final long serialVersionUID = 1L;
	  private Map<String, Object> resExt;

	  public Object getExtValue(String key)
	  {
	    if (this.resExt != null) {
	      return this.resExt.get(key);
	    }
	    return null;
	  }

	  public void setExtValue(String key, Object value) {
	    if ((StringUtils.isNotBlank(key)) && (value != null)) {
	      if (this.resExt == null) {
	        this.resExt = new LinkedHashMap();
	      }
	      this.resExt.put(key, value);
	    }
	  }

	  public Map<String, Object> getResExt()
	  {
	    return this.resExt;
	  }

	  public void setResExt(Map<String, Object> resExt)
	  {
	    this.resExt = resExt;
	  }

	  public String toString()
	  {
	    try
	    {
	      return JsonUtil.toJson(this); } catch (Exception e) {
	    }
	    return super.toString();
	  }
}
